﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Models.RegisterModel>" %>
<asp:Content ID="registerMeta" ContentPlaceHolderID="Head" runat="server">
     <meta name="description" content="<%=ViewResources.SharedStrings.DefaultMetaDescription %>" />
 <meta name="keywords" content="<%=ViewResources.SharedStrings.DefaultMetaKeywords %>" />
</asp:Content>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="default-content">    
    <h2>Create a New Account</h2>
    
    
    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
        <div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.FirstName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.FirstName)%>
                    <%= Html.ValidationMessageFor(m => m.FirstName)%>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.LastName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.LastName)%>
                    <%= Html.ValidationMessageFor(m => m.LastName)%>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.UserName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Email) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Email) %>
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>

                <div class="editor-label">
                    <%= Html.LabelFor(m => m.AgreeWithRules) %>
                </div>
                <div class="editor-field">
                    <%= Html.CheckBoxFor(m => m.AgreeWithRules)%>
                    <%= Html.ValidationMessageFor(m => m.AgreeWithRules)%>
                </div>
                
                <p>
                    <input type="submit" value="Register" />
                </p>
            
        </div>
    <% } %>
    </div>
</asp:Content>
